地図:福岡県

説明

指定した座標に福岡県を描きます。map()のパラメーターにはX座標、Y座標、描画する色を指定します。

[以下のJavaScriptプログラムをダウンロード]

function map(x,y,c){var n=128;
uart(n,14,3,x+8,y,c,0,0,0,1,3,7,7,7);
uart(n,14,3,x+16,y,c,1,15,159,255,255,255,255,255);
uart(n,14,3,x+24,y,c,134,204,252,252,252,252,252,254);
y=y+8;
uart(n,14,3,x,y,c,0,0,2,6,15,31,31,31);
uart(n,14,3,x+8,y,c,7,31,47,79,15,255,255,255);
uart(n,14,3,x+16,y,c,255,255,255,255,255,255,255,255);
uart(n,14,3,x+24,y,c,254,255,255,255,255,255,255,255);
uart(n,14,3,x+32,y,c,0,0,0,128,192,240,240,240);
y=y+8;
uart(n,14,3,x,y,c,127,255,192,0,0,0,0,0);
uart(n,14,3,x+8,y,c,255,255,255,60,12,0,0,1);
uart(n,14,3,x+16,y,c,255,255,255,255,255,255,255,255);
uart(n,14,3,x+24,y,c,255,248,240,224,224,192,192,192);
uart(n,14,3,x+32,y,c,240,0,0,0,0,0,0,0);
y=y+8;
uart(n,14,3,x+8,y,c,3,7,15,31,63,127,63,31);
uart(n,14,3,x+16,y,c,255,255,255,255,255,255,243,224);
uart(n,14,3,x+24,y,c,192,192,192,192,192,224,192,192);
y=y+8;
uart(n,14,3,x+8,y,c,15,14,14,10,0,0,0,0);
uart(n,14,3,x+16,y,c,128,0,0,0,0,0,0,0);
y=y+8;
}
uart("PC CLEAR 0b\n");
map(0,0,1);

目次に戻る